#pragma once
void CallServer( const Json::Value& ServerConfig );

class CClient
{
public:
	CClient( net::network_t hNetwork );
	~CClient();

	void ProcessSyncSession( const Json::Value& Config, const C2S_SyncSession& Msg );
	void ProcessSyncDirectory( const Json::Value& Config, const C2S_SyncDirectory& Msg );
	void ProcessSyncFileState( const Json::Value& Config, const C2S_SyncFileState& Msg );
	void ProcessSyncFile( const Json::Value& Config, const C2S_SyncFile& Msg );
private:
	Json::Value		JRoot;
	Json::Value*	mCurrentNode;
	//xgc_char		szAddress[64];
	//xgc_uint16		uPort;

	net::network_t	mNetwork;
};